package com.msb.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.msb.common.utils.PageUtils;
import com.msb.mall.product.entity.AttrEntity;
import com.msb.mall.product.vo.AttrGroupRelationVo;
import com.msb.mall.product.vo.AttrResponseVo;
import com.msb.mall.product.vo.AttrVo;

import java.lang.reflect.InvocationTargetException;
import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author dpb
 * @email dengpbs@163.com
 * @date 2022-10-08 17:05:21
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveDetail(AttrVo attr) throws InvocationTargetException, IllegalAccessException;

    PageUtils queryPageDetail(Map<String, Object> params,String type, Long cateId);

    AttrResponseVo getAttrInfo(Long attrId);

    void updateAttrInfo(AttrVo attr);

    void removeDetailsByIds(List<Long> asList);

    List<AttrEntity> getAttrRelation(Long attrGroupId);

    void deleteRelation(AttrGroupRelationVo[] vos);

    PageUtils selectNoattrRelation(Long attrGroupId,Map<String, Object> params);
}

